﻿<Window x:Class="XPathAutoSuggest.Views.SampleCode"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Sample Code" Height="300" Width="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Border Style="{StaticResource header}" Grid.ColumnSpan="3" Grid.Row="0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
                <Image HorizontalAlignment="Left" Margin="3 1 45 1"  VerticalAlignment="Top" Source="/XPathAutoSuggest;component/Images/XPath40TruncMOre.jpg" />
                <TextBlock  Text="Sample code to Use XPath (C#)" HorizontalAlignment="Center" />
                </StackPanel>
        </Border>

        <TextBox Grid.Row="1" Grid.ColumnSpan="2" TextWrapping="Wrap">
            <TextBox.Text>
                XmlDocument xDoc = new XmlDocument();
            StringReader strRdr = new StringReader(xml);
                xDoc.Load(strRdr);
            </TextBox.Text>
        </TextBox>
    </Grid>
</Window>
